package com.msb;

import com.msb.Interface.User;
import com.msb.Interface.UserConfig;

import com.msb.config.MyConfig;
import com.msb.config.Person;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author sunpeng
 * @Date 2021-07-09 8:24
 */
/*@SpringBootConfiguration
@EnableAutoConfiguration
@ComponentScan("com.msb")*/
@SpringBootApplication
public class SpringbootBaseApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(SpringbootBaseApplication.class, args);
/*        String[] beanDefinitionNames = context.getBeanDefinitionNames();
        for (int i = 0; i < beanDefinitionNames.length; i++) {
            System.out.println(beanDefinitionNames[i]);
        }*/
        Person bean = context.getBean(Person.class);
        System.out.println(bean);
    }
}
